import 'package:flutter/material.dart';

class DynamicPageWidget extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    return new DynamicPageWidgetState();
  }
}

class DynamicPageWidgetState extends State<DynamicPageWidget> with AutomaticKeepAliveClientMixin{

  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('动态'),
        brightness: Brightness.light,
        backgroundColor: Colors.white,
      ),
      body: new Center(
        child: Image.asset('images/tab_home.png'),
      ),
    );
  }
}